/**
 * Created by gdg on 2017/5/7.
 */
import React, {Component} from 'react'
import {View, Text, Button} from 'react-native'

import {observer} from 'mobx-react/native'

//观察对象
@observer
class HomeScreen extends Component {
	static navigationOptions = {
		title: 'Welcome'
	};
	constructor(...args) {
		super(...args);

		this.state = {
			name: 'home'
		}
	}

	render() {
		view = (
			<View>
				<Button
 					onPress={()=>this.props.navigation.navigate('SecondScreen')}
					title="跳转到第二个页面"
					color="#841584"
				/>
			</View>
		);
		return view
	}
}

export default HomeScreen;